<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt"%>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://"
			+ request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<base href="<%=basePath%>">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<title>福建东侨政府网</title>
<meta name="Keywords" content="修改个人密码">
<link href="css/main.css" rel="stylesheet" type="text/css">
<link href="css/index.css" rel="stylesheet" type="text/css">
<script src="js/jquery-1.10.2.min.js"></script>
<script type="text/javascript">
		$(function(){
		$("#button-save").click(function(){
			$.ajax({
					type:'post',
					url:'guest/updatePwdSave.do',
					dataType:'json',
					data:$("#updatePwd-form").serialize(),
					success:function(data){
						if(data && data.success){
							alert(data.msg);
						}else{
							alert(data.msg);
						}
					}
				});
		});
		});
</script>
</head>
<body>
	<jsp:include page="/jsp/top.jsp"></jsp:include>
	<div class="yc_container">
	 <div class="yc_location">当前位置 &gt; 修改密码</div> 
			<form action="" method="post" id="updatePwd-form">
	 			<input type="hidden" value="${user.id }" name="id"> 
				<table style="margin: 0 auto;padding: 10px 0 20px 0;">
						<tr>
								<td>新密码</td>
								<td><input type="password" name="password" id="password" style="width: 160px;height:25px;border: 1px solid #FF910C;"></td>
						</tr>
						<tr>
								<td>确认密码</td>
								<td><input type="password" name="relpassword" id="relpassword" style="width: 160px;height:25px;border: 1px solid #FF910C;"></td>
						</tr>
						<tr>
							<td colspan="2">
									<input type="button" id="button-save" value="确定" style="height: 25px;">&nbsp;&nbsp;&nbsp;&nbsp;
									<input type="reset" value="取消" style="height: 25px;">
							</td>
						</tr>
				</table>
			</form>
	</div>
	<jsp:include page="/jsp/bottom.jsp"></jsp:include>
</body>
</html>
